import { IForm } from '@/render/base-ui/form'

export const addModelConfig: IForm = {
  labelWidth: '100px',
  itemStyle: {
    padding: '2px 10px'
  },
  colLayout: {
    span: 24
  },
  labelPosition: 'left',
  formItems: [
    {
      field: 'label',
      type: 'input',
      label: '参数名称'
    },
    {
      field: 'description',
      type: 'textarea',
      label: '描述'
    }
  ]
}

export const addContainerConfig: IForm = {
  labelWidth: '100px',
  itemStyle: {
    padding: '2px 10px'
  },
  colLayout: {
    span: 24
  },
  labelPosition: 'left',
  formItems: [
    {
      field: 'label',
      type: 'input',
      label: '参数名称'
    },
    {
      field: 'description',
      type: 'textarea',
      label: '描述'
    }
  ]
}

export const addParameterConfig: IForm = {
  labelWidth: '100px',
  itemStyle: {
    padding: '2px 10px'
  },
  colLayout: {
    span: 24
  },
  labelPosition: 'left',
  formItems: [
    {
      field: 'label',
      type: 'input',
      label: '参数名称'
    },
    {
      field: 'description',
      type: 'textarea',
      label: '描述'
    },
    {
      field: 'parameterType',
      type: 'select',
      options: [],
      label: '参数类型'
    },
    {
      field: 'defaultValue',
      type: 'input',
      label: '默认值'
    },
    {
      field: 'max',
      type: 'input',
      label: '最大值'
    },
    {
      field: 'min',
      type: 'input',
      label: '最小值'
    }
  ]
}

export const addReferenceConfig: IForm = {
  labelWidth: '100px',
  itemStyle: {
    padding: '2px 10px'
  },
  colLayout: {
    span: 24
  },
  labelPosition: 'left',
  formItems: [
    {
      field: 'label',
      type: 'input',
      label: '参数名称'
    },
    {
      field: 'description',
      type: 'textarea',
      label: '描述'
    },
    {
      field: 'referenceType',
      type: 'select',
      options: [],
      label: '参数类型'
    }
  ]
}
